package com.clark.crawler.novel.factory;

import com.clark.crawler.novel.deal.KenshuChapterDeal;
import com.clark.crawler.novel.deal.ChapterDeal;
import com.clark.crawler.novel.property.NovelPropertyUtil;
import com.clark.crawler.util.BeanUtils;

import java.util.Map;

/**
 * description:
 *
 * @author tianhua.xie（tianhua.xie@ucarinc.com）
 * @version 1.0
 * @date 2018/12/27 9:47
 */
public class KenshuChapterDealFactory extends IChapterDealFactory {
    @Override
    protected ChapterDeal create() {
        KenshuChapterDeal deal = new KenshuChapterDeal();
        Map<String, Object> map = NovelPropertyUtil.getProperty();
        BeanUtils.parseBean(map,deal);
        return deal;
    }
}
